added some development tools
[windows-sources.git] / developer / Samples / NET 4.6 / Famliy_Tree_DSL / DslPackage / GeneratedCode / ModelExplorer.cs
bloba485818f21ee09e2e244a07f7e9169ff8b793ea3
1 //------------------------------------------------------------------------------
2 // <auto-generated>
3 // This code was generated by a tool.
4 //
5 // Changes to this file may cause incorrect behavior and will be lost if
6 // the code is regenerated.
7 // </auto-generated>
8 //------------------------------------------------------------------------------
10 using DslModeling = global::Microsoft.VisualStudio.Modeling;
11 using DslShell = global::Microsoft.VisualStudio.Modeling.Shell;
12 using DslDiagrams = global::Microsoft.VisualStudio.Modeling.Diagrams;
14 namespace Fabrikam.Dsl.TestValidation
16 /// <summary>
17 /// Double-derived class to allow easier code customization.
18 /// </summary>
19 internal partial class TestValidationExplorer : TestValidationExplorerBase
21 /// <summary>
22 /// Constructs a new TestValidationExplorer.
23 /// </summary>
24 public TestValidationExplorer(global::System.IServiceProvider serviceProvider)
25 : base(serviceProvider)
30 /// <summary>
31 /// Control hosted in the TestValidationExplorerToolWindow.
32 /// </summary>
33 internal abstract class TestValidationExplorerBase : DslShell::ModelExplorerTreeContainer
35 /// <summary>
36 /// Constructs a new TestValidationExplorerBase.
37 /// </summary>
38 protected TestValidationExplorerBase(global::System.IServiceProvider serviceProvider) : base(serviceProvider)
45 /// <summary>
46 /// Create IElementVisitor
47 /// </summary>
48 /// <returns>IElementVisitor</returns>
49 protected override DslModeling::IElementVisitor CreateElementVisitor()
51 return new DslShell::ExplorerElementVisitor(this);
54 /// <summary>
55 /// Specifies the context menu that should be shown for the model explorer.
56 ///</summary>
57 protected override global::System.ComponentModel.Design.CommandID ContextMenuCommandId
59 get
61 return Constants.TestValidationExplorerMenu;
65 /// <summary>
66 /// Returns the root elements domain class Id. The is the very top level tree node in the TreeView
67 ///</summary>
68 protected override global::System.Guid RootElementDomainClassId
70 get { return global::Fabrikam.Dsl.TestValidation.Family.DomainClassId; }
73 /// <summary>
74 /// Returns the root elements to be displayed in the explorer.
75 ///</summary>
76 protected override global::System.Collections.IList FindRootElements(DslModeling::Store store)
78 return store.ElementDirectory.FindElements( this.RootElementDomainClassId);